package io.github.wanggit.antrpc.demo.config_center.demoe;

import io.github.wanggit.antrpc.client.config.ConfigChangeTypeEnum;
import io.github.wanggit.antrpc.client.config.IConfigChangeListener;
import org.springframework.stereotype.Component;

@Component
public class MyConfigListener implements IConfigChangeListener {
    @Override
    public void changed(ConfigChangeTypeEnum changeType, String key, String oldValue, String newValue) {
        System.out.println("ChangeType: " + changeType.name());
        System.out.println("Key: " + key);
        System.out.println("OldValue: " + oldValue);
        System.out.println("NewValue: " + newValue);
    }
}
